package com.seselin.bean;

import com.example.sorttitleview.R;

/**
 * Created by Seselin on 2018/8/17 13:28.
 * 排序标题的布局及样式配置
 */
public class SortItemParam {

    private int layoutRes;
    private int tvTitleId;
    private int ivSortId;

    private int iconUpRes;
    private int iconDownRes;
    private int iconNullRes;

    private int checkColor;//color文件中的Id
    private int unCheckColor;//color文件中的Id

    {//构造代码块，提供默认样式
        layoutRes = R.layout.sort_title_item;
        tvTitleId = R.id.tv_title;
        ivSortId = R.id.iv_sort;
        iconUpRes = R.mipmap.icon_sort_up;
        iconDownRes = R.mipmap.icon_sort_down;
        iconNullRes = R.mipmap.icon_sort_null;
        checkColor = R.color.sort_title_check;
        unCheckColor = R.color.sort_title_un_check;
    }

    public SortItemParam() {
    }

    public SortItemParam(int layoutRes, int tvTitleId, int ivSortId) {
        this.layoutRes = layoutRes;
        this.tvTitleId = tvTitleId;
        this.ivSortId = ivSortId;
    }

    public int getLayoutRes() {
        return layoutRes;
    }

    public SortItemParam setLayoutRes(int layoutRes) {
        this.layoutRes = layoutRes;
        return this;
    }

    public int getTvTitleId() {
        return tvTitleId;
    }

    public SortItemParam setTvTitleId(int tvTitleId) {
        this.tvTitleId = tvTitleId;
        return this;
    }

    public int getIvSortId() {
        return ivSortId;
    }

    public SortItemParam setIvSortId(int ivSortId) {
        this.ivSortId = ivSortId;
        return this;
    }

    public int getIconUpRes() {
        return iconUpRes;
    }

    public SortItemParam setIconUpRes(int iconUpRes) {
        this.iconUpRes = iconUpRes;
        return this;
    }

    public int getIconDownRes() {
        return iconDownRes;
    }

    public SortItemParam setIconDownRes(int iconDownRes) {
        this.iconDownRes = iconDownRes;
        return this;
    }

    public int getIconNullRes() {
        return iconNullRes;
    }

    public SortItemParam setIconNullRes(int iconNullRes) {
        this.iconNullRes = iconNullRes;
        return this;
    }

    public int getCheckColor() {
        return checkColor;
    }

    public SortItemParam setCheckColor(int checkColor) {
        this.checkColor = checkColor;
        return this;
    }

    public int getUnCheckColor() {
        return unCheckColor;
    }

    public SortItemParam setUnCheckColor(int unCheckColor) {
        this.unCheckColor = unCheckColor;
        return this;
    }

}
